import request from '@/utils/request'

// 查询贴子-点赞列表
export function listPostUpvote(query) {
  return request({
    url: '/forum/postUpvote/list',
    method: 'get',
    params: query
  })
}

// 查询贴子-点赞详细
export function getPostUpvote(id) {
  return request({
    url: '/forum/postUpvote/' + id,
    method: 'get'
  })
}

// 新增贴子-点赞
export function addPostUpvote(data) {
  return request({
    url: '/forum/postUpvote',
    method: 'post',
    data: data
  })
}

// 修改贴子-点赞
export function updatePostUpvote(data) {
  return request({
    url: '/forum/postUpvote',
    method: 'put',
    data: data
  })
}

// 删除贴子-点赞
export function delPostUpvote(id) {
  return request({
    url: '/forum/postUpvote/' + id,
    method: 'delete'
  })
}
